package pe.com.entidad.bancaria;

public class TarjetaServicesSoapProxy implements pe.com.entidad.bancaria.TarjetaServicesSoap {
  private String _endpoint = null;
  private pe.com.entidad.bancaria.TarjetaServicesSoap tarjetaServicesSoap = null;
  
  public TarjetaServicesSoapProxy() {
    _initTarjetaServicesSoapProxy();
  }
  
  public TarjetaServicesSoapProxy(String endpoint) {
    _endpoint = endpoint;
    _initTarjetaServicesSoapProxy();
  }
  
  private void _initTarjetaServicesSoapProxy() {
    try {
      tarjetaServicesSoap = (new pe.com.entidad.bancaria.TarjetaServicesLocator()).getTarjetaServicesSoap();
      if (tarjetaServicesSoap != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)tarjetaServicesSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)tarjetaServicesSoap)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (tarjetaServicesSoap != null)
      ((javax.xml.rpc.Stub)tarjetaServicesSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public pe.com.entidad.bancaria.TarjetaServicesSoap getTarjetaServicesSoap() {
    if (tarjetaServicesSoap == null)
      _initTarjetaServicesSoapProxy();
    return tarjetaServicesSoap;
  }
  
  public pe.com.entidad.bancaria.Tarjeta getTarjeta(java.lang.String entidad, java.lang.String numeroTarjeta) throws java.rmi.RemoteException{
    if (tarjetaServicesSoap == null)
      _initTarjetaServicesSoapProxy();
    return tarjetaServicesSoap.getTarjeta(entidad, numeroTarjeta);
  }
  
  
}